package net.oschina.simpleplus.entity;

import com.google.protobuf.GeneratedMessageV3;
import com.google.protobuf.InvalidProtocolBufferException;

public interface Protobuf <T extends GeneratedMessageV3>{

	T build();
	
	byte[] toByteArray();
	
	void parseFrom(byte[] bytes) throws InvalidProtocolBufferException;
	
	void copyFrom(T t);
}
